import 'package:boss/ui/page/forgetPassword/provider/forget_password_provider.dart';
import 'package:boss/ui/page/forgetPassword/widget/forget_password_browser.dart';
import 'package:boss/ui/widget/center_title_app_bar.dart';
import 'package:flutter/material.dart';
import 'package:hi_common/hi_common.dart';
import 'package:provider/provider.dart';
import 'package:router/annotation.dart';

@RouterConfig(ForgetPasswordPage.pageName)
class ForgetPasswordPage extends StatefulWidget {
  static const pageName = '/forgetPasswordPage';

  @override
  _ForgetPasswordState createState() => _ForgetPasswordState('忘记密码');
}

class _ForgetPasswordState extends BaseState<ForgetPasswordPage> {
  _ForgetPasswordState(String pageName) : super(pageName);

  @override
  Widget build(BuildContext context) {
    return MultiProvider(
      providers: [
        ChangeNotifierProvider(
          create: (context) => ForgetPasswordProvider(),
        ),
      ],
      child: Scaffold(
        appBar: CenterTitleAppBar(
          title: '',
          isShowDivider: false,
        ),
        body: ForgetPasswordBrwoser(),
      ),
    );
  }
}
